package router

const (
	MarkExit = "EXIT"
)

var CORS = map[string]string{
	"Access-Control-Allow-Methods":     "POST,GET,PUT,PATCH,OPTIONS,DELETE",
	"Access-Control-Allow-Headers":     "x-requested-with,content-type,Authorization",
	"Access-Control-Allow-Origin":      "*",
	"Access-Control-Max-Age":           "3600",
	"Access-Control-Allow-Credentials": "true",
}

// New 新建服务
// 路由注册有先后顺序(注册相同的路由会执行先注册的),
// Handler是nil的时候会过滤
func New() *Server {
	return NewServer()
}
